<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Havhokeren.dk | Newsletter</title>
</head>

<body>
    <table width="798" align="center" cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #ddd; padding:1px; margin: 5px auto;">
        <tbody>
            <tr>
                <td align="left" width="796" height="134">
                    <a href="<?php echo $base_link ?>" title="Havhøkeren"><img border="0" width="798" height="134" src="<?php echo $base_link ?>image/newsletter/havhoekeren_header.jpg" alt="Havhøkeren" /></a>
                </td>
            </tr>
            <tr>
                <td style="padding: 0 20px;">
                    <h1 style="border-bottom: 1px dotted #c0c0c0; color: #00589c; font-family: Georgia; font-size: 38px; font-weight: normal; padding: 10px 0 3px 0; margin: 0;"><?php echo $title ?></h1>
                </td>
            </tr>
            <tr>
                <td style="padding: 15px 20px;">
                    <p style="color: #424242; font-family: Georgia; font-size: 16px;"><?php echo $description ?></p>
                </td>    
            </tr>
            <tr>
                <td>
                    <table width="798" align="center" cellpadding="0" cellspacing="0" border="0" style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background-color: #e9e9e9; padding: 0 0 20px 0;">
                        <tbody>
                            <tr>
                                <td colspan="2" style="padding:10px 20px 1px 20px; margin: 0; border: 1px solid #ededed;"><h2 style="border-bottom: 1px dotted #a1a1a1; color: #00589c; font-family: Georgia; font-size: 24px; font-weight: normal; padding: 0; margin: 0px; padding: 0; text-transform: uppercase;"><?php echo $product_title ?></h2></td>
                            </tr>
                            <?php $i = 0; ?>
                            <?php foreach($products as $product){ ?>
                                <?php if($i % 2 == 0){ ?>
                                    <tr>
                                <?php } ?>
                                <td valign="top" style="padding: 0 20px;">
                                    <table width="350" cellpadding="0" cellspacing="0" border="0" style="border-bottom: 1px dotted #a1a1a1; padding: 15px 0;">
                                        <tbody>
                                            <tr>
                                                <td width="152" valign="top">
                                                    <a style="text-align:center; margin: 0; padding: 0;" href="<?php echo $product['link'] ?>">
                                                        <img width="136" height="153" style="border: 1px solid #dbdbdb;" src="<?php echo $product['image'] ?>" />
                                                    </a>
                                                </td>
                                                <td valign="top">
                                                    <p style="color: #00589c; font-family: Georgia; font-size: 16px;"><strong><?php echo $product['name'] ?></strong></p>
                                                    <?php if($product['discount']){ ?>
                                                        <p style="color: #e10009; font-family: Georgia; font-size: 16px;">
                                                            <s><?php echo $product['price'] ?> </s>
                                                            <br/>
                                                            <br/>
                                                            -<?php echo $product['percent'] ?>%
                                                            <br/>
                                                            <strong><?php echo $product['discount'] ?></strong>                                                        
                                                        </p>
                                                    <?php }else{ ?>
                                                        <p style="color: #000000; font-family: Georgia; font-size: 16px;">
                                                            <strong>Pris:&nbsp;<?php echo $product['price'] ?></strong>
                                                        </p>                                                            
                                                    <?php } ?>
                                                    <p style="margin-top: 20px;"><a style="color: #00589c; font-family: Georgia; font-size: 16px; font-style:italic;" href="<?php echo $product['link'] ?>">Tjek det nu</a></p>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <?php $i++; ?>
                                <?php if($i % 2 == 0){ ?>
                                    <tr>
                                <?php } ?>
                            <?php } ?>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="padding-top:8px;">
                    <div style="color: #424242; font-family: Georgia; font-size: 15px; font-style:italic; padding: 0 0 8px; margin: 0 20px; border-bottom: 1px dotted #a1a1a1;"><?php echo $footer_text ?></div>
                </td>
            </tr>
            <tr>
                <td style="padding-top:8px;">
                    <p style="color: #424242; font-family: Georgia; font-size: 11px; font-weight:bold; padding: 0 0 8px; margin: 0 20px; border-bottom: 1px dotted #a1a1a1; text-align:center;">
                        <?php foreach($manufacturers as $manufacturer){ ?>
                            <a href="<?php echo $manufacturer['href'] ?>"><span style="color:#1F497D;"><?php echo $manufacturer['name'] ?></span></a> 
                        <?php } ?>
                    </p>
                </td>
            </tr>
            <tr>
                <td style="padding: 8px 20px 0px 20px;">
                    <p style="color: #424242; font-family: Georgia; font-size: 14px; margin: 0px;">Havhøkeren • Ndr. Havnevej 9 • DK - 3250 Gilleleje • Tlf: +45 48 30 16 99 • Email: <a style="color: #00589c; font-family: Georgia; font-size: 15px; font-style:italic;" href="mailto:webshop@havhokeren.dk">webshop@havhokeren.dk</a></p>
                </td>
            </tr>
            <tr>
                <td><img src="<?php echo $base_link ?>image/newsletter/havhoekeren_footer.jpg" width="798" height="47" alt="" /></td>
            </tr>
        </tbody>
    </table>
</body>
</html>
